<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>QuantumLibrary: /bb/mbigc/mbig5696/git/quantum_external/src/quantum_stack_allocator.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">QuantumLibrary
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('d7/dd5/quantum__stack__allocator_8h_source.html','../../');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">quantum_stack_allocator.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">** Copyright 2018 Bloomberg Finance L.P.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">**</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">** Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">** you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">** You may obtain a copy of the License at</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">**</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">**     http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">**</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">** Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">** distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">** See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">** limitations under the License.</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#ifndef BLOOMBERG_QUANTUM_STACK_ALLOCATOR_H</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#define BLOOMBERG_QUANTUM_STACK_ALLOCATOR_H</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;quantum/quantum_contiguous_pool_manager.h&gt;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">namespace </span><a class="code" href="../../d6/db9/namespaceBloomberg.html">Bloomberg</a> {</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">namespace </span>quantum {</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">//==============================================================================</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">//                            struct StackAllocator</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">//==============================================================================</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment"></span><span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> SIZE&gt;</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html">   34</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html">StackAllocator</a> : <span class="keyword">public</span> <a class="code" href="../../d7/dd7/structBloomberg_1_1quantum_1_1ContiguousPoolManager.html">ContiguousPoolManager</a>&lt;T&gt;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;{</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <span class="comment">//------------------------------ Typedefs ----------------------------------</span></div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a3c1a5d3715e56a22b82c0c19ca416cba">   37</a></span>&#160;    <span class="keyword">typedef</span> <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html">StackAllocator&lt;T, SIZE&gt;</a> <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a3c1a5d3715e56a22b82c0c19ca416cba">this_type</a>;</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a48c237f5a8fff7f18e97febc743b42ca">   38</a></span>&#160;    <span class="keyword">typedef</span> T                       <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a48c237f5a8fff7f18e97febc743b42ca">value_type</a>;</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#afb0b543ebb88f939d5e2a0428d55a322">   39</a></span>&#160;    <span class="keyword">typedef</span> <a class="code" href="../../d7/dd7/structBloomberg_1_1quantum_1_1ContiguousPoolManager.html#adada271ce39fa67c3952f0a843aa15e4">value_type</a>*             <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#afb0b543ebb88f939d5e2a0428d55a322">pointer</a>;</div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a05e7902556797a2afbfb1cae784853eb">   40</a></span>&#160;    <span class="keyword">typedef</span> <span class="keyword">const</span> <a class="code" href="../../d7/dd7/structBloomberg_1_1quantum_1_1ContiguousPoolManager.html#adada271ce39fa67c3952f0a843aa15e4">value_type</a>*       <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a05e7902556797a2afbfb1cae784853eb">const_pointer</a>;</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a22ed084ed290666b67f54842e9049911">   41</a></span>&#160;    <span class="keyword">typedef</span> <a class="code" href="../../d7/dd7/structBloomberg_1_1quantum_1_1ContiguousPoolManager.html#adada271ce39fa67c3952f0a843aa15e4">value_type</a>&amp;             <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a22ed084ed290666b67f54842e9049911">reference</a>;</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a0105578676ae5eb432c356f71cef0263">   42</a></span>&#160;    <span class="keyword">typedef</span> <span class="keyword">const</span> <a class="code" href="../../d7/dd7/structBloomberg_1_1quantum_1_1ContiguousPoolManager.html#adada271ce39fa67c3952f0a843aa15e4">value_type</a>&amp;       <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a0105578676ae5eb432c356f71cef0263">const_reference</a>;</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a40635fcee2b862d3267aebb13fccc2da">   43</a></span>&#160;    <span class="keyword">typedef</span> <span class="keywordtype">size_t</span>                  <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a40635fcee2b862d3267aebb13fccc2da">size_type</a>;</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a93f8c3cf75f9f5883c125d7f97d9ba1f">   44</a></span>&#160;    <span class="keyword">typedef</span> std::ptrdiff_t          <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a93f8c3cf75f9f5883c125d7f97d9ba1f">difference_type</a>;</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ad380d00f9ed75d74b50d3c39900cd05b">   45</a></span>&#160;    <span class="keyword">typedef</span> std::false_type         <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ad380d00f9ed75d74b50d3c39900cd05b">propagate_on_container_move_assignment</a>;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a3969fa542b465d690e78e520cd52246e">   46</a></span>&#160;    <span class="keyword">typedef</span> std::false_type         <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a3969fa542b465d690e78e520cd52246e">propagate_on_container_copy_assignment</a>;</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a1ea7c6056316ed4e73652045dde737ae">   47</a></span>&#160;    <span class="keyword">typedef</span> std::false_type         <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a1ea7c6056316ed4e73652045dde737ae">propagate_on_container_swap</a>;</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ab546275349acd0d256e93eddc70ec886">   48</a></span>&#160;    <span class="keyword">typedef</span> std::false_type         <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ab546275349acd0d256e93eddc70ec886">is_always_equal</a>;</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a656e67323f60779a49afa607a701b609">   49</a></span>&#160;    <span class="keyword">typedef</span> std::true_type          <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a656e67323f60779a49afa607a701b609">default_constructor</a>;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keyword">typedef</span> std::aligned_storage&lt;<span class="keyword">sizeof</span>(<a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a48c237f5a8fff7f18e97febc743b42ca">value_type</a>),</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ab4a911914d100c699c1223a61e0545b5">   51</a></span>&#160;                                 <span class="keyword">alignof</span>(<a class="code" href="../../d7/dd7/structBloomberg_1_1quantum_1_1ContiguousPoolManager.html#adada271ce39fa67c3952f0a843aa15e4">value_type</a>)&gt; <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ab4a911914d100c699c1223a61e0545b5">storage_type</a>;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a46f1913434b78086f8e2df69cfca0108">   52</a></span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> storage_type::type <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a46f1913434b78086f8e2df69cfca0108">aligned_type</a>;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    </div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="../../de/db5/structBloomberg_1_1quantum_1_1StackAllocator_1_1rebind.html">   55</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="../../de/db5/structBloomberg_1_1quantum_1_1StackAllocator_1_1rebind.html">rebind</a></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    {</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="../../de/db5/structBloomberg_1_1quantum_1_1StackAllocator_1_1rebind.html#ad769bb51d96e7d669f3da8e6d4b6d0fc">   57</a></span>&#160;        <span class="keyword">typedef</span> <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html">StackAllocator&lt;U,SIZE&gt;</a> <a class="code" href="../../de/db5/structBloomberg_1_1quantum_1_1StackAllocator_1_1rebind.html#ad769bb51d96e7d669f3da8e6d4b6d0fc">other</a>;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    };</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="comment">//------------------------------- Methods ----------------------------------</span></div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ae515ea0a2f5f03d75af7cf31f7af02da">   60</a></span>&#160;    <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ae515ea0a2f5f03d75af7cf31f7af02da">StackAllocator</a>() : <a class="code" href="../../d7/dd7/structBloomberg_1_1quantum_1_1ContiguousPoolManager.html">ContiguousPoolManager</a>&lt;T&gt;(_buffer, SIZE)</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    {}</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ab9d91509b9dff14d363560fd639a1b17">   62</a></span>&#160;    <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ab9d91509b9dff14d363560fd639a1b17">StackAllocator</a>(<span class="keyword">const</span> <a class="code" href="../../d7/dd7/structBloomberg_1_1quantum_1_1ContiguousPoolManager.html">this_type</a>&amp;) : <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html">StackAllocator</a>()</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    {}</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ab445f717b9eaa17f6b1b18e74577e7c7">   64</a></span>&#160;    <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html">StackAllocator</a>&amp; <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ab445f717b9eaa17f6b1b18e74577e7c7">operator=</a>(<span class="keyword">const</span> <a class="code" href="../../d7/dd7/structBloomberg_1_1quantum_1_1ContiguousPoolManager.html">this_type</a>&amp;)</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    {}</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a6feb56a3cc79193873da2b85fd97962f">   66</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html">StackAllocator</a> <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a6feb56a3cc79193873da2b85fd97962f">select_on_container_copy_construction</a>(<span class="keyword">const</span> <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html">StackAllocator</a>&amp;) {</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ae515ea0a2f5f03d75af7cf31f7af02da">StackAllocator</a>();</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    }</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#aea1eda9f23a75b993b58668077f138d1">   70</a></span>&#160;    <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#aea1eda9f23a75b993b58668077f138d1">StackAllocator</a>(<span class="keyword">const</span> <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html">StackAllocator&lt;U,SIZE&gt;</a>&amp;) : <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html">StackAllocator</a>()</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    {}</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ad7ec8fec7ec051fccad351f69875124a">   73</a></span>&#160;    <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html">StackAllocator</a>&amp; <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ad7ec8fec7ec051fccad351f69875124a">operator=</a>(<span class="keyword">const</span> <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html">StackAllocator&lt;U,SIZE&gt;</a>&amp;)</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    {}</div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ad334f32071fb07d38c51641c9cba4af9">   75</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ad334f32071fb07d38c51641c9cba4af9">operator==</a>(<span class="keyword">const</span> <a class="code" href="../../d7/dd7/structBloomberg_1_1quantum_1_1ContiguousPoolManager.html">this_type</a>&amp;)<span class="keyword"> const </span>{</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    }</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ac0f76d818ac4840408db0275e6d1fe76">   78</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ac0f76d818ac4840408db0275e6d1fe76">operator!=</a>(<span class="keyword">const</span> <a class="code" href="../../d7/dd7/structBloomberg_1_1quantum_1_1ContiguousPoolManager.html">this_type</a>&amp;)<span class="keyword"> const </span>{</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    }</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    </div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="comment">//------------------------------- Members ----------------------------------</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a46f1913434b78086f8e2df69cfca0108">aligned_type</a>            _buffer[SIZE];</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;};</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;}} <span class="comment">//namespaces</span></div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="preprocessor">#endif //BLOOMBERG_QUANTUM_STACK_ALLOCATOR_H</span></div><div class="ttc" id="structBloomberg_1_1quantum_1_1ContiguousPoolManager_html"><div class="ttname"><a href="../../d7/dd7/structBloomberg_1_1quantum_1_1ContiguousPoolManager.html">Bloomberg::quantum::ContiguousPoolManager</a></div><div class="ttdoc">Provides fast (quasi zero-time) in-place allocation for STL containers. Objects are allocated from a ...</div><div class="ttdef"><b>Definition:</b> quantum_contiguous_pool_manager.h:40</div></div>
<div class="ttc" id="namespaceBloomberg_html"><div class="ttname"><a href="../../d6/db9/namespaceBloomberg.html">Bloomberg</a></div><div class="ttdef"><b>Definition:</b> quantum_buffer_impl.h:22</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_a6feb56a3cc79193873da2b85fd97962f"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a6feb56a3cc79193873da2b85fd97962f">Bloomberg::quantum::StackAllocator::select_on_container_copy_construction</a></div><div class="ttdeci">static StackAllocator select_on_container_copy_construction(const StackAllocator &amp;)</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:66</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_ab9d91509b9dff14d363560fd639a1b17"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ab9d91509b9dff14d363560fd639a1b17">Bloomberg::quantum::StackAllocator::StackAllocator</a></div><div class="ttdeci">StackAllocator(const this_type &amp;)</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:62</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_a93f8c3cf75f9f5883c125d7f97d9ba1f"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a93f8c3cf75f9f5883c125d7f97d9ba1f">Bloomberg::quantum::StackAllocator::difference_type</a></div><div class="ttdeci">std::ptrdiff_t difference_type</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:44</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_aea1eda9f23a75b993b58668077f138d1"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#aea1eda9f23a75b993b58668077f138d1">Bloomberg::quantum::StackAllocator::StackAllocator</a></div><div class="ttdeci">StackAllocator(const StackAllocator&lt; U, SIZE &gt; &amp;)</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:70</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_a22ed084ed290666b67f54842e9049911"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a22ed084ed290666b67f54842e9049911">Bloomberg::quantum::StackAllocator::reference</a></div><div class="ttdeci">value_type &amp; reference</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:41</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_ad334f32071fb07d38c51641c9cba4af9"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ad334f32071fb07d38c51641c9cba4af9">Bloomberg::quantum::StackAllocator::operator==</a></div><div class="ttdeci">bool operator==(const this_type &amp;) const</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:75</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_a656e67323f60779a49afa607a701b609"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a656e67323f60779a49afa607a701b609">Bloomberg::quantum::StackAllocator::default_constructor</a></div><div class="ttdeci">std::true_type default_constructor</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:49</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_ad7ec8fec7ec051fccad351f69875124a"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ad7ec8fec7ec051fccad351f69875124a">Bloomberg::quantum::StackAllocator::operator=</a></div><div class="ttdeci">StackAllocator &amp; operator=(const StackAllocator&lt; U, SIZE &gt; &amp;)</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:73</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_afb0b543ebb88f939d5e2a0428d55a322"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#afb0b543ebb88f939d5e2a0428d55a322">Bloomberg::quantum::StackAllocator::pointer</a></div><div class="ttdeci">value_type * pointer</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:39</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_1_1rebind_html_ad769bb51d96e7d669f3da8e6d4b6d0fc"><div class="ttname"><a href="../../de/db5/structBloomberg_1_1quantum_1_1StackAllocator_1_1rebind.html#ad769bb51d96e7d669f3da8e6d4b6d0fc">Bloomberg::quantum::StackAllocator::rebind::other</a></div><div class="ttdeci">StackAllocator&lt; U, SIZE &gt; other</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:57</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html">Bloomberg::quantum::StackAllocator</a></div><div class="ttdoc">Provides a stack-based object pool to the underlying ContiguousPoolManager. The default buffer size i...</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:34</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_a48c237f5a8fff7f18e97febc743b42ca"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a48c237f5a8fff7f18e97febc743b42ca">Bloomberg::quantum::StackAllocator::value_type</a></div><div class="ttdeci">T value_type</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:38</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1ContiguousPoolManager_html_adada271ce39fa67c3952f0a843aa15e4"><div class="ttname"><a href="../../d7/dd7/structBloomberg_1_1quantum_1_1ContiguousPoolManager.html#adada271ce39fa67c3952f0a843aa15e4">Bloomberg::quantum::ContiguousPoolManager::value_type</a></div><div class="ttdeci">T value_type</div><div class="ttdef"><b>Definition:</b> quantum_contiguous_pool_manager.h:44</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_ab445f717b9eaa17f6b1b18e74577e7c7"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ab445f717b9eaa17f6b1b18e74577e7c7">Bloomberg::quantum::StackAllocator::operator=</a></div><div class="ttdeci">StackAllocator &amp; operator=(const this_type &amp;)</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:64</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_ae515ea0a2f5f03d75af7cf31f7af02da"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ae515ea0a2f5f03d75af7cf31f7af02da">Bloomberg::quantum::StackAllocator::StackAllocator</a></div><div class="ttdeci">StackAllocator()</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:60</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_a05e7902556797a2afbfb1cae784853eb"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a05e7902556797a2afbfb1cae784853eb">Bloomberg::quantum::StackAllocator::const_pointer</a></div><div class="ttdeci">const value_type * const_pointer</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:40</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_ab546275349acd0d256e93eddc70ec886"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ab546275349acd0d256e93eddc70ec886">Bloomberg::quantum::StackAllocator::is_always_equal</a></div><div class="ttdeci">std::false_type is_always_equal</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:48</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_ac0f76d818ac4840408db0275e6d1fe76"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ac0f76d818ac4840408db0275e6d1fe76">Bloomberg::quantum::StackAllocator::operator!=</a></div><div class="ttdeci">bool operator!=(const this_type &amp;) const</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:78</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_a1ea7c6056316ed4e73652045dde737ae"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a1ea7c6056316ed4e73652045dde737ae">Bloomberg::quantum::StackAllocator::propagate_on_container_swap</a></div><div class="ttdeci">std::false_type propagate_on_container_swap</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:47</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_1_1rebind_html"><div class="ttname"><a href="../../de/db5/structBloomberg_1_1quantum_1_1StackAllocator_1_1rebind.html">Bloomberg::quantum::StackAllocator::rebind</a></div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:55</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_a3c1a5d3715e56a22b82c0c19ca416cba"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a3c1a5d3715e56a22b82c0c19ca416cba">Bloomberg::quantum::StackAllocator::this_type</a></div><div class="ttdeci">StackAllocator&lt; T, SIZE &gt; this_type</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:37</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_a3969fa542b465d690e78e520cd52246e"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a3969fa542b465d690e78e520cd52246e">Bloomberg::quantum::StackAllocator::propagate_on_container_copy_assignment</a></div><div class="ttdeci">std::false_type propagate_on_container_copy_assignment</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:46</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_ab4a911914d100c699c1223a61e0545b5"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ab4a911914d100c699c1223a61e0545b5">Bloomberg::quantum::StackAllocator::storage_type</a></div><div class="ttdeci">std::aligned_storage&lt; sizeof(value_type), alignof(value_type)&gt; storage_type</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:51</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_ad380d00f9ed75d74b50d3c39900cd05b"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#ad380d00f9ed75d74b50d3c39900cd05b">Bloomberg::quantum::StackAllocator::propagate_on_container_move_assignment</a></div><div class="ttdeci">std::false_type propagate_on_container_move_assignment</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:45</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_a40635fcee2b862d3267aebb13fccc2da"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a40635fcee2b862d3267aebb13fccc2da">Bloomberg::quantum::StackAllocator::size_type</a></div><div class="ttdeci">size_t size_type</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:43</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_a46f1913434b78086f8e2df69cfca0108"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a46f1913434b78086f8e2df69cfca0108">Bloomberg::quantum::StackAllocator::aligned_type</a></div><div class="ttdeci">storage_type::type aligned_type</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:52</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html_a0105578676ae5eb432c356f71cef0263"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html#a0105578676ae5eb432c356f71cef0263">Bloomberg::quantum::StackAllocator::const_reference</a></div><div class="ttdeci">const value_type &amp; const_reference</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:42</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>quantum_stack_allocator.h</b></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
